package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.SysUser;
import com.foreveross.vo.Tenement;

public interface TenementDAO {

	public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public List<Tenement> findTenementList(String house_id, String name, String phone,
			int pageIndex, int pageSize, String userId) throws Exception;

	public long getTenementListCount(String house_id, String name, String phone, String userId) throws Exception;

	public void deleteTenement(String tenementId) throws Exception;
	
	public void deleteTenementHouse(String tenementId) throws Exception;
	
}
